#ifndef GLOBAL_H
#define GLOBAL_H

#include <QObject>
#include "stock/stock.h"
#include "config/config.h"

#ifdef USE_MYSQL
    #define DB_FILENAME "wordpress"
#else
    #define DB_FILENAME "./Test3.sql"
#endif

#define CFG_FILENAME    "./test.cfg"

class Global : public QObject
{
    Q_OBJECT
public:
    explicit Global(QObject *parent = 0);
    
    static void setGlobalStock(Stock* s);
    static Stock* getStockInstance();

signals:
    
public slots:
private:
    static Stock* stockInstance;        //global stock instance with all available values
};

#endif // GLOBAL_H
